package mytest;

import bean.Person;
import org.junit.Test;

public class SugarTest {
    @Test
    public void testSwitch() {
        Person tom1 = new Person(1, "Tom", 13);
        Person tom2 = new Person(1, "Tom", 13);
        System.out.println(tom1.getAge());
        Person jerry = new Person(2, "Jerry", 12);

        switch (14) {
            case 12:
                System.out.println(tom1);
                break;
            case 13:
                System.out.println(jerry);
                break;
            default:
                System.out.println("Nothing");
        }
    }
}
